<?php

class TestNamedRouter extends Abstraction\Router
{
    function createRoutes()
    {
        $routes = array();
        
        $routes ['get'] = new testRailsRouter( 'entry/get/:id', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes [] = new testRailsRouter( 'entry/list', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes [] = new testRailsRouter( 'entry/:id', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes ['info'] = new testRailsRouter( 'entry/:id/info', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes ['multiple1'] = new testRailsRouter( 'e/:person/:relation', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes ['multiple2'] = new testRailsRouter( ':person/e/:relation', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes ['multiple3'] = new testRailsRouter( ':person/:relation/e', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes ['no-reverse'] = new testRegexpRoute( '@^entry/(?P<id>[0-9]+)$@', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes ['catchall'] = new Implementation\CatchAllRouter( 'testController', 'sample', array( 'method' => 'show' ) );

        return $routes;
    }
}
